package com.moyu.common.core.constants;

/**
 * @Author 赵彦博
 * @Date 2024/12/28 14:34
 */
public class CacheConstants {

    public final static String AUTH_ROLE_KEY = "auth:role:";

    public final static String AUTH_PERMISSION_KEY = "auth:permission:";
    public final static String CHECK_EXP_VALUE = "[]";
    public final static Long CHECK_ROLE_TIME = 720l;
    public final static Long CHECK_PERMISSION_TIME = 720l;
    public final static Long CHECK_EXP_TIME = 10l;

    public final static Long LOCK_WATCH_TIMEOUT = 30000l;

    public final static String USER_LOCK_KEY = "roleLock:";

    public final static Long LOCK_EXP = 30l;

    public final static Integer RETRY_COUNT = 3;
}
